// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store.js'
import '@/assets/style/border.css'
import '@/assets/style/reset.css'
import '@/assets/style/iconfont.css'
import fastClick from 'fastClick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import LyTab from 'ly-tab'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'


fastClick.attach(document.body)

Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
Vue.use(LyTab)
Vue.use(MintUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store ,
  components: { App },
  template: '<App/>',
  mounted(){
      let map = new BMap.Map('allmap')
      let myCity = new BMap.LocalCity()
      myCity.get((result)=>{
          if(result){
              this.$store.state.city = result.name
          }else{
              this.$store.state.city ='北京' 
          }
      })
  }
})
